move declarations of some required per-arch functions into common headers
authorJan Beulich <jbeulich@suse.com>
Thu, 12 Jan 2012 12:45:47 +0000 (13:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 12 Jan 2012 12:45:47 +0000 (13:45 +0100)
... since it is pointless to have each arch declare them on their own
(and now and the - see ia64 - forget to do so).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/ia64/xen/dom0_ops.c
xen/arch/ia64/xen/domain.c
xen/arch/ia64/xen/xensetup.c
xen/arch/x86/domain.c
xen/arch/x86/x86_64/domain.c
xen/common/kernel.c
xen/include/asm-ia64/hypercall.h
xen/include/asm-x86/hypercall.h
xen/include/asm-x86/setup.h
xen/include/xen/hypercall.h

index eb4c3fc9f1a1e4bf10d739b67454e4f40623f288..a372d582213315ab7b55d1e603846d5558c021a4 100644 (file)
@@ -19,6 +19,7 @@
 #include <xen/console.h>
 #include <xen/grant_table.h>
 #include <xen/guest_access.h>
+#include <xen/hypercall.h>
 #include <xen/pci.h>
 #include <asm/vmx.h>
 #include <asm/dom_fw.h>
index c9cf902fb17ca8ebc78d2b424369c71032ea40c7..1ea5a9065cc3d87e1bcf829addb24383da7b2a1b 100644 (file)
@@ -31,6 +31,7 @@
 #include <asm/processor.h>
 #include <xen/event.h>
 #include <xen/console.h>
+#include <xen/hypercall.h>
 #include <xen/version.h>
 #include <xen/libelf.h>
 #include <asm/pgalloc.h>
index 31bbac916a37342e2b88a545350dc986a9e32425..35d3fe2c8bdc1ba3c2d7c3c9447e1aa7c4e3d263 100644 (file)
@@ -10,7 +10,7 @@
 #include <xen/multiboot.h>
 #include <xen/sched.h>
 #include <xen/mm.h>
-#include <public/version.h>
+#include <xen/hypercall.h>
 #include <xen/gdbstub.h>
 #include <xen/version.h>
 #include <xen/console.h>
index 532c0ec37907b33e1a2cccce47ad01c6dcdee713..0c85cbb1301a0e81283bede588e3fe3895d80105 100644 (file)
@@ -23,6 +23,7 @@
 #include <xen/grant_table.h>
 #include <xen/iocap.h>
 #include <xen/kernel.h>
+#include <xen/hypercall.h>
 #include <xen/multicall.h>
 #include <xen/irq.h>
 #include <xen/event.h>
@@ -46,7 +47,6 @@
 #include <asm/xstate.h>
 #include <asm/mpspec.h>
 #include <asm/ldt.h>
-#include <asm/hypercall.h>
 #include <asm/fixmap.h>
 #include <asm/hvm/hvm.h>
 #include <asm/hvm/support.h>
index 9c46593da669335cbcb62af87cb510089ee0fe2d..e746c89d10940a34cf9347c93cce0a89482256b2 100644 (file)
@@ -6,7 +6,7 @@
 #include <xen/config.h>
 #include <xen/types.h>
 #include <xen/guest_access.h>
-#include <asm/hypercall.h>
+#include <xen/hypercall.h>
 #include <compat/vcpu.h>
 
 #define xen_vcpu_info vcpu_info
index 7decc1d70d42dfcb7cf63871ca93d7465dfa798b..88984d2355e258d428861fafddb5027438bed0cd 100644 (file)
 #include <xen/paging.h>
 #include <xen/nmi.h>
 #include <xen/guest_access.h>
+#include <xen/hypercall.h>
 #include <asm/current.h>
 #include <public/nmi.h>
 #include <public/version.h>
-#ifdef CONFIG_X86
-#include <asm/shared.h>
-#include <asm/setup.h>
-#endif
 
 #ifndef COMPAT
 
index 0af7ebcee57f2d10a410044b3ff58b249e5ac462..37846bc535e46b03bfb43ae4d1a975aea22fa4f8 100644 (file)
@@ -22,7 +22,4 @@ vmx_do_mmu_update(
     u64 *pdone,
     u64 foreigndom);
 
-extern long
-arch_do_vcpu_op(int cmd, struct vcpu *v, XEN_GUEST_HANDLE(void) arg);
-
 #endif /* __ASM_IA64_HYPERCALL_H__ */
index a27698ef9eae1e72914fabaf864f6798af277a86..9e136c32107288c9d241a2ccd420c59ac4abd944 100644 (file)
@@ -90,16 +90,6 @@ extern unsigned long
 do_iret(
     void);
 
-struct vcpu;
-extern long
-arch_do_vcpu_op(
-    int cmd, struct vcpu *v, XEN_GUEST_HANDLE(void) arg);
-
-extern long
-arch_do_sysctl(
-    struct xen_sysctl *op, 
-    XEN_GUEST_HANDLE(xen_sysctl_t) u_sysctl);
-
 extern int
 do_kexec(
     unsigned long op, unsigned arg1, XEN_GUEST_HANDLE(void) uarg);
index aeabb50423416f8cb61ba164bf6b371c823f867c..b983c97773f2d04aa552f4aebcf951ad879ebc66 100644 (file)
@@ -2,7 +2,6 @@
 #define __X86_SETUP_H_
 
 #include <xen/multiboot.h>
-#include <public/version.h>
 
 extern bool_t early_boot;
 extern unsigned long xenheap_initial_phys_start;
@@ -40,7 +39,6 @@ unsigned long initial_images_nrpages(void);
 void discard_initial_images(void);
 
 int xen_in_range(unsigned long mfn);
-void arch_get_xen_caps(xen_capabilities_info_t *info);
 
 void microcode_grab_module(
     unsigned long *, const multiboot_info_t *, void *(*)(const module_t *));
index 70ccfdf722085f674e08e5ed83a74d424bfff779..3d099a65cde21d6f8301ebda4fd2c38e83a742a8 100644 (file)
@@ -14,6 +14,7 @@
 #include <public/platform.h>
 #include <public/event_channel.h>
 #include <public/tmem.h>
+#include <public/version.h>
 #include <asm/hypercall.h>
 #include <xsm/xsm.h>
 
@@ -44,6 +45,11 @@ extern long
 do_sysctl(
     XEN_GUEST_HANDLE(xen_sysctl_t) u_sysctl);
 
+extern long
+arch_do_sysctl(
+    struct xen_sysctl *sysctl,
+    XEN_GUEST_HANDLE(xen_sysctl_t) u_sysctl);
+
 extern long
 do_platform_op(
     XEN_GUEST_HANDLE(xen_platform_op_t) u_xenpf_op);
@@ -102,6 +108,12 @@ do_vcpu_op(
     int vcpuid,
     XEN_GUEST_HANDLE(void) arg);
 
+struct vcpu;
+extern long
+arch_do_vcpu_op(int cmd,
+    struct vcpu *v,
+    XEN_GUEST_HANDLE(void) arg);
+
 extern long
 do_nmi_op(
     unsigned int cmd,
@@ -167,4 +179,6 @@ compat_set_timer_op(
 
 #endif
 
+void arch_get_xen_caps(xen_capabilities_info_t *info);
+
 #endif /* __XEN_HYPERCALL_H__ */